<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>droik.com</title>
<link href="../css/sample1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url(../images/main_bg2.gif);
}
.style3 {color: #FFFFFF}
.style4 {
	font-family: "trebuchet MS";
	font-weight: bold;
	font-size: 24px;
}
.style5 {font-size: 16px}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		
        <jsp:include page="top.jsp"/>
		   <%String action1 = request.getParameter("action1");
		  String dealsId = request.getParameter("dealsId");%>
<br>
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="../images/deals_tab.gif" width="720" height="76" border="0" usemap="#Map"></td>
  </tr>
  <tr>
    <td background="../images/border_bg2.gif">
      <table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td height="510" valign="top"> 
            <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
            <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
            <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
            <%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="display" %>
            <table border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td></td>
    </tr>
    <tr> 
      <td><table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="719" height="20"><table width="618" border="0" align="center" cellpadding="0" cellspacing="0" id="Coupons Table">
			
                <tr> 
                  <td colspan="3" background="../images/coupons_horidot_new.gif"><img src="../images/transperent_new.gif" width="10" height="3"></td>
                </tr>
                <tr> 
                  <td width="3" background="../images/coupons_veridot_new.gif"><img src="../images/transperent_new.gif" width="3" height="10"></td>
                  <td width="655"> 
                    <!-- COUPONTS CODE START -->
						<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="5" height="3" colspan=""></td>
                        <td width="22"></td>
                        <td width="450" rowspan="3" valign="top"><table>
                          <!--DWLayoutTable-->
    
                              <tr> 
                            <td width="442" height="28" align="center" nowrap class="titleDeals"><bean:write name="NewDealRecord" property="title"/></td>
                          </tr>
                              <tr>
                                <td height="22">&nbsp;</td>
                                </tr>
					       <!--<tr> 
                        <td class="title"> Discount : <bean:write name="NewDealRecord" property="discountPrice"/>                        </td>
                      </tr>-->
                              </table></td>
                      <td width="149" rowspan="3" valign="top"><logic:notEqual name="NewDealRecord" property="img" value=""><img width="144" height="111" src="<bean:write name="NewDealRecord" property="img"/>"/></logic:notEqual> </td>
                      </tr>
                      <tr>
                        <td height="90" colspan=""></td>
                        <td valign="top" colspan="2"><table border="0" cellspacing="1" cellpadding="1">
                            <!--DWLayoutTable--><br>
                                <tr class="text"> 
                                  <td class="textDeals"><bean:write name="NewDealRecord" property="businessName"/></td>
                                </tr>
                                <tr class="text"> 
                                  <td class="textDeals"> <bean:write name="NewDealRecord" property="businessAddress"/> </td>
                                </tr>
                                <tr class="text"> 
                                  <td class="textDeals"><bean:write name="NewDealRecord" property="place"/>,CA <bean:write name="NewDealRecord" property="zip"/> </td>
                                </tr>
                            <tr class="text"> 
                                  <td class="textDeals">Ph: <bean:write name="NewDealRecord" property="businessPhone"/> </td>
                                </tr>
                              
                            <tr class="text"> 
                                  <td class="textDeals"><bean:write name="NewDealRecord" property="email"/> </td>
                                </tr>
                                <tr class="text"> 
                                  <td class="textDeals"><bean:write name="NewDealRecord" property="website"/> </td>
                                </tr>
                          </table></td>
                        </tr>
                      <tr>
                        <td height="3" colspan=""></td>
                        <td></td>
                        </tr>
                      <tr> 
                        <td height="150" colspan="4" class="text"> 
                         <font color="#003300"><bean:write name="NewDealRecord" property="dealDesc" filter="false"/></font>

                          </td>
                      </tr>
                      <tr>
                      <td height="89" colspan="4">
                      <table width="100%">
                        <!--DWLayoutTable-->
                      <tr>
                      <td width="358" height="43">&nbsp;</td>
                      <td width="273" rowspan="3" align="right">&nbsp;<img src="../images/coupon_footlogo.gif" width="228" height="73">
                      </td>
                      </tr>
                      <tr>
                        <td height="16" valign="top"><span class="boldtext">Expiry Date:</span><span class="text"><bean:write name="NewDealRecord" property="expiry"/></span></td>
                      </tr>
                      <tr>
                        <td height="16" valign="bottom" class="text">*Coupon redemption is at the discretion of the merchant</td>
                      </tr>
                      </table>
                      </td>
                      </tr>
                    </table>
                    <!-- COUPONTS CODE END -->
                  </td>
                  <td width="3" background="../images/coupons_veridot_new.gif"><img src="../images/transperent_new.gif" width="3" height="10"></td>
                </tr>
                <tr> 
                  <td colspan="3" background="../images/coupons_horidot_new.gif"><img src="../images/transperent_new.gif" width="10" height="3"></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="20"><table border="0" align="right" cellpadding="2" cellspacing="2">
                <tr> 
                  <td>&nbsp;<% if (action1==null){%>
                  <form method="post" action="../portal/print.do">
			        <input type="hidden" name="dealsId" value="<%=dealsId%>"/>
                    <!--<a href="#"><img src="../images/VCRBack.gif" width="32" height="32" border="0" onClick="javascript:history.back()">Back</a> 
            <a href="../portal/response.do"><img src="../images/Redo.gif" width="32" height="32" border="0" >Respond</a> -->
                    <div align="right">
                      <input type="button" name="Back" value="Back" onClick="javascript:history.back()" class="button"/ >
                            
                    </div>
                  </form>                  <%}%></td>
                  <td><a href="#" onClick="window.open('../jsp/PrintDeals.jsp','CouponWindow','width=665,height=382')"><img src="../images/coupons_printpreview.gif" width="85" height="27" border="0"></a></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
            </table></td>
        </tr>
        <tr>
          <td height="234" valign="top"><table width="95%" border="0" cellpadding="4" cellspacing="0" align="center">
            <!--DWLayoutTable-->
                                
<tr>
        <td width="675" height="207" align="left" valign="top" class="text" > 
          <%     
		  if (action1!=null && action1.equals("DeleteDeals"))
		  {%>
                  <form name="form1" method="post" action="../portal/deals.do">
                    <div align="right">
                      <input type="hidden" name="dealsId" value="<%=dealsId%>"/>
                      <input type="hidden" name="action" value="DeleteDeals"/>
                      <!--   <a href="../portal/postadv.do?action=DeleteAd&advId="><img src="../images/UnPlug.gif" width="32" height="32"  align="absmiddle"> 
            Delete </a>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<a href="../portal/MyAdv.do"><img src="../images/Delete.gif" width="32" height="32" align="absmiddle"></a> 
            <a href="../portal/MyAdv.do">Cancel</a> <br>-->
                      <input type="submit" name="Submit" value="Delete" class="button">
                      <input type="submit" name="Submit" value="Cancel" class="button">
                    </div>
                  </form>                  <%}%>                </td>
              </tr>

        </table></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td><img src="../images/border_bot2.gif" width="719" height="20"></td>
  </tr>
</table>
 <br>
 <br>
<jsp:include page="footer.html"/>
<map name="Map">
  <area shape="rect" coords="43,11,111,60" href="../portal/index.do">
  <area shape="rect" coords="132,5,212,56" href="../portal/activities.do">
  <area shape="rect" coords="222,5,315,57" href="../portal/attractions.do">
  <area shape="rect" coords="318,9,394,61" href="../portal/deals.do">
</map>
</body>
</html>
